home *** CD-ROM | disk | FTP | other *** search
- #include "qtools.h"
-
- /*
- * ============
- * main
- * ============
- */
- int main(int argc, char **argv)
- {
- FILE *srcFile;
-
- if(!srcFile = fopen(argv[1], READ_BINARY)
- if(!srcFile = fopen("progs.dat", READ_BINARY)
- eprintf("failed to open sourcefile\n");
-
- if(srcFile) {
- if(qcc(srcFile, "", OP_EXTRACT) == FALSE)
- eprintf("failed to decompile sourcefile\n");
-
- fclose(srcFile);
- }
-
- return 0;
- }
-